From d0e8dc2b66f324f6d6526c5cd333c19359047a0a Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Tue, 14 Oct 2025 22:36:16 +0200 Subject: [PATCH] shellDBus: Send an activation token for Accelerator(De)Activated This will be useful for the global shortcuts portal implementation. Part-of: --- js/ui/shellDBus.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index d40d8705e..17f43e46e 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -286,9 +286,14 @@ export class GnomeShell { const connection = this._dbusImpl.get_connection(); const info = this._dbusImpl.get_info(); + + const context = global.create_app_launch_context(0, -1); + const token = context.get_startup_notify_id(null, []); + const params = { 'timestamp': GLib.Variant.new('u', timestamp), 'action-mode': GLib.Variant.new('u', Main.actionMode), + 'activation-token': GLib.Variant.new('s', token), }; const deviceNode = device.get_device_node(); -- 2.39.5